package com.dks.repository.impl;

import java.util.*;

import com.dks.mapper.InvitationRecordDetailMapper;
import com.dks.models.InvitationRecordDetail;
import com.dks.repository.IInvitationRecordDetailRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class InvitationRecordDetailRepository implements IInvitationRecordDetailRepository {

    private InvitationRecordDetailMapper invitationRecordDetailMapper;

    @Autowired
    public InvitationRecordDetailRepository(final InvitationRecordDetailMapper invitationRecordDetailMapperIn) {
        this.invitationRecordDetailMapper = invitationRecordDetailMapperIn;
    }

    @Override
    public Integer insert(InvitationRecordDetail invitationRecordDetail){
        return invitationRecordDetailMapper.insert(invitationRecordDetail);
    }

    @Override
    public Integer update(InvitationRecordDetail invitationRecordDetail){
        return invitationRecordDetailMapper.update(invitationRecordDetail);
    }

    @Override
    public Integer delete(Integer id){
        return invitationRecordDetailMapper.delete(id);
    }

    @Override
    public InvitationRecordDetail select(Integer id){
        return invitationRecordDetailMapper.select(id);
    }

    @Override
    public Integer cntByMap(Map<String,Object> map){
        return invitationRecordDetailMapper.cntByMap(map);
    }

    @Override
    public List<Integer> getByMap(Map<String,Object> map){
        return invitationRecordDetailMapper.getByMap(map);
    }

    @Override
    public List<InvitationRecordDetail> getByMapList(Map<String,Object> map){
        return invitationRecordDetailMapper.getByMapList(map);
    }

    @Override
    public Integer updateByCode(InvitationRecordDetail invitationRecordDetail){
        return invitationRecordDetailMapper.updateByCode(invitationRecordDetail);
    }

    @Override
    public InvitationRecordDetail selectByBfCode(String bfCode){
        return invitationRecordDetailMapper.selectByBfCode(bfCode);
    }
}
